summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/Root.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Root.cpp b/src/Root.cpp
index c59590d95..2234f7fdc 100644
--- a/src/Root.cpp
+++ b/src/Root.cpp
@@ -651,9 +651,9 @@ bool cRoot::DoWithPlayerByUUID(const AString & a_PlayerUUID, cPlayerListCallback
bool cRoot::DoWithPlayer(const AString & a_PlayerName, cPlayerListCallback & a_Callback)
{
- for (WorldMap::iterator itr = m_WorldsByName.begin(); itr != m_WorldsByName.end(); itr++)
+ for (auto World : m_WorldsByName)
{
- if (itr->second->DoWithPlayer(a_PlayerName, a_Callback))
+ if (World.second->DoWithPlayer(a_PlayerName, a_Callback))
{
return true;
}